package com.one.group.model.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Table("sp_material")
public class Material implements Serializable {

    @Id(keyType = KeyType.Auto)
    @Column("id")
    private Long id;

    @Column("name")
    private String name;

    @Column("brand")
    private String brand;

    @Column("specification")
    private String specification;

    @Column("unit")
    private String unit;

    @Column("remark")
    private String remark;

    @Column("created_time")
    private Date createdTime;

    @Column("update_time")
    private Date updateTime;

    @Column(tenantId = true)
    private Long tenantId;

}